/* ---------- GRID VIEW ---------- */
.art-gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.art-gallery .item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
}

.art-gallery .item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: 0.3s;
}

.art-gallery .item img:hover {
    transform: scale(1.03);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    height: 80vh;
    position: relative;
}

.lightbox .nav {
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 10px;
}

.lightbox .prev {
    left: -60px;
}

.lightbox .next {
    right: -60px;
}

.lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.lightbox-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox-image-wrapper img.show {
    opacity: 1;
}

/* Slide number */
.slide-number {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

/* Close button */
.lightbox .close {
    position: fixed;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}

/* Thumbnail strip */
.thumb-row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding: 15px 0;
    justify-content: center;
}

.thumb-row img {
    height: 80px;
    margin: 0 6px;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 4px;
    transition: 0.2s;
}

.thumb-row img.active,
.thumb-row img:hover {
    opacity: 1;
    border: 3px solid #ff4e3b;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .lightbox-content {
        width: 90%;
        height: 70vh;
    }

    .lightbox .nav {
        font-size: 40px;
    }

    .lightbox .prev {
        left: -50px;
    }

    .lightbox .next {
        right: -50px;
    }

    .lightbox .close {
        font-size: 40px;
        top: 15px;
        right: 25px;
    }

    .thumb-row img {
        height: 60px;
        margin: 0 4px;
    }
}

@media (max-width: 768px) {
    .art-gallery .item img {
        height: 120px;
    }

    .lightbox-content {
        width: 95%;
        height: 60vh;
    }

    .lightbox .nav {
        font-size: 30px;
    }

    .lightbox .prev {
        left: -35px;
    }

    .lightbox .next {
        right: -35px;
    }

    .lightbox .close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }

    .thumb-row img {
        height: 50px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .art-gallery .item img {
        height: 100px;
    }

    .lightbox-content {
        width: 100%;
        height: 55vh;
    }

    .lightbox .nav {
        font-size: 25px;
    }

    .lightbox .prev {
        left: -25px;
    }

    .lightbox .next {
        right: -25px;
    }

    .lightbox .close {
        font-size: 25px;
        top: 5px;
        right: 10px;
    }

    .thumb-row img {
        height: 40px;
        margin: 0 2px;
    }
}